<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>图片图层</title>
    <script src="https://webapi.amap.com/maps?v=1.4.15&key=6e79f6d236e295632f21b385e363b6e8"></script>
    <style>
        html,
        body,
        #container {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>
<div id="container"></div>
<script>
    var imageLayer = new AMap.ImageLayer({
        url: './311620451959_.pic_hd.jpg',
        bounds: new AMap.Bounds(
            [121.521445,31.256728],
            [121.735679,31.23354]
        ),
        // zooms: [12, 18]
    });
    var map = new AMap.Map('container', {
        resizeEnable: true, //是否监控地图容器尺寸变化
        mapStyle: "amap://styles/whitesmoke",
        zoom: 12, //初始地图级别
        center: [121.634055, 31.219888], //初始地图中心点
        layers: [
            new AMap.TileLayer(),
            imageLayer
        ]
    });
</script>
</body>
</html>
